package demo6;

import demo6.Student;

public class Test {
    public static void main(String[] args) {
        StudentNameComparator studentNameComparator=new StudentNameComparator();
        StudentScoreComparator studentScoreComparator=new StudentScoreComparator();
        Student dzj=new Student("dzj",100);
        Student hzp=new Student("hzp",50);
        System.out.println(studentNameComparator.compare(dzj,hzp));
        System.out.println(studentScoreComparator.compare(dzj,hzp));
    }
}
